import req from './req'
//注册接口
export const reqReg = (data:{username:string,password:string})=>req.get(`/user/register?username=${data.username}&password=${data.password}`)
//登录接口
export const reqLog = (data:{username:string,password:string})=>req.get(`/user/login?username=${data.username}&password=${data.password}`)
//经典台词接口
export const reqLines = (key:string)=>req.get(`http://api.tianapi.com/dialogue/index?key=${key}`)
//获取词云地址
export const reqCloud = (data:{name:string})=>req.post(`/analysis/cloud`,data)
//获取各国出品电影数量
export const reqCountries = (year:number)=>req.get(`/analysis/ratio?year=${year}`)
//获取年份与类型的数据
export const reqTypeYear = ()=>req.get("./analysis/type")